/*清除默认样式*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/*背景颜色*/
body {
    background-color: #f3f5f7;
}

/*在于解决外边距塌陷的问题*/
.clearfix::before, .clearfix::after {
    content: '';
    display: table;
}

/*真正清除浮动的标签*/
.clearfix::after {
    clear: both;
}

/*版心*/
.wrapper {
    width: 1200px;
    margin: 0 auto;
}

/*头部*/
.header {
    margin: 30px auto;
    height: 42px;
}

h1 {
    float: left;
}

li {
    list-style: none;
}

/*导航*/
.nav {
    float: left;
    margin-left: 70px;
    height: 42px;
}

.nav li {
    float: left;
    margin-right: 26px;
}

.nav li a {
    text-decoration: none;
    display: block;
    padding: 0 9px;
    height: 42px;
    line-height: 42px;
    /*border-bottom: 2px solid #00a4ff;*/
    font-size: 18px;
    color: #050505;
}

.nav li a:hover {
    border-bottom: 2px solid #00a4ff;
}

/*搜索*/
.search {
    float: left;
    margin-left: 59px;
    width: 414px;
    height: 40px;
    border: 1px solid #00a4ff;
}

.search input {
    width: 362px;
    height: 39px;
    padding-left: 20px;
    float: left;
}

.search input::placeholder {
    font-size: 14px;
    color: #bfbfbf;
}

.search button {
    float: left;
    width: 50px;
    height: 40px;
    background-color: #00a4ff;
}

/*用户中心*/
.user {
    float: right;
    margin-right: 35px;
    height: 42px;
    line-height: 42px;
}

.user img {
    width: 30px;
    height: 30px;
    border-radius: 25px;
    /*调节图片位置垂直居中*/
    vertical-align: middle;
}

/*轮播图banner*/
.banner {
    width: 100%;
    height: 420px;
    background-image: url("http://itxinfei.gitee.io/xuecheng-parent/img/widget-banner3.png");
}

.banner .left {
    float: left;
    padding: 0 20px;
    width: 190px;
    height: 420px;
    background-color: rgba(0, 0, 0, 0.3);
    line-height: 44px;
}

.banner .left span {
    float: right;
}

.banner .left a {
    color: #ffffff;
    font-size: 14px;
}

.banner .left a:hover {
    color: #00b4ff;
}

.banner .right {
    float: right;
    margin-top: 50px;
    width: 228px;
    height: 300px;
    background-color: #ffffff;
}

.banner .right h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #ffffff;
}

.banner .right h2:hover {
    color: #050505;
}

.banner .right .content {
    padding: 0 18px;
}

.banner .right .content dl {
    padding: 12px 0;
    border-bottom: 2px solid #e5e5e5;
}

.banner .right .content dt {
    font-size: 16px;
    color: #4e4e4e;
}

.banner .right .content dd {
    font-size: 14px;
    color: #4e4e4e;
}

.banner .right .more {
    display: block;
    width: 200px;
    height: 40px;
    border: 1px solid #00a4ff;
    margin: 4px auto;

    font-size: 16px;
    color: #00a4ff;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
}

/*精品推荐*/
.goods {
    padding-left: 34px;
    padding-right: 26px;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 3px 0 rgba(118, 118, 118, 0.2);
    line-height: 60px;
}

.goods h2 {
    float: left;
    font-size: 16px;
    font-weight: 400;
}

.goods ul {
    float: left;
    margin-left: 30px;
}

.goods li {
    float: left;
}

.goods li a {
    border-left: 1px solid #050505;
    padding: 0 30px;
    color: #050505;
}

.goods .hobby {
    float: right;
    font-size: 14px;
    color: #00a4ff;
}

.box {
    margin-top: 35px;
}

.box .title {
    height: 40px;
}


.box .title h2 {
    float: left;
    font-size: 20px;
    font-weight: 400;
    color: #494949;
}

.box .title a {
    float: right;
    margin-right: 30px;
    font-size: 12px;
    color: #a5a5a5;
}

.box .content li {
    float: left;
    width: 228px;
    height: 270px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.box .content li:nth-child(5n) {
    margin-right: 0;
}

.box .content li h3 {
    font-size: 15px;
    padding: 25px;
    color: #050505;
    font-weight: 400;
}

.box .content li p {
    padding: 0 20px;
    font-size: 12px;
    color: #999;
}

.box .content li span {
    color: #ff7c2d;
}

/*版权*/
.footer {
    margin-top: 40px;
    height: 417px;
    background-color: #ffffff;
}

.footer .left {
    float: left;
}

.footer .left img {
    margin: 30px 0;
}

.footer .left p {
    font-size: 12px;
    color: #666666;
}

.footer .left a {
    text-align: center;
    display: inline-block;
    margin-top: 30px;
    width: 100px;
    height: 32px;
    font-size: 16px;
    line-height: 32px;
    border: 1px solid #000000;
    color: #00a4ff;
}

.footer .right {
    float: right;
}

.footer .right dl {
    float: left;
    margin-top: 30px;
    margin-left: 120px;
    color: #333333;
    font-weight: 600;
}

.footer .right dd {
    margin-top: 10px;
    color: green;
    font-weight: 400;
}

.box .content li {
    position: relative;
}

.box .content li .hot {
    position: absolute;
    top: 4px;
    right: -4px;
}

